<%--
  Created by IntelliJ IDEA.
  User: 小强
  Date: 2021/10/7
  Time: 21:24
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>图书入库</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../css/menustyle.css">

</head>


<div class="container-fluid">
    <div class="row-fluid clearfix">
        <!-- 导航栏 -->
        <div id="sidebar">
            <header>
                <a href="#">后台管理</a>
            </header>
            <ul class="nav">
                <li>
                    <a href="${pageContext.request.contextPath}/admin/allReader">
                        读者管理
                    </a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/bookIO/toAllIOBook">
                        出入库管理
                    </a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/Lend/adminAllBook">
                        借阅管理
                    </a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/type/allType">
                        分类管理
                    </a>
                </li>
            </ul>
        </div>

        <!-- 正文 -->
        <div id="content">
            <div class="container-fluid" style="margin-left: 250px">
                <!-- 网页内容 -->

                <div class="row clearfix">
                    <div class="col-md-12 column">
                        <div class="page-header">
                            <h1>
                                <small>新增书籍</small>
                            </h1>
                            <a href="/bookIO/toAllIOBook" style="float: right">返回&gt;&gt;</a>
                        </div>
                    </div>
                </div>
                <form action="${pageContext.request.contextPath}/bookIO/storeBook" method="post" enctype="multipart/form-data">
                    <div class="form-group"><label for="isbn">书籍书号：</label>
                        <input type="text" class="form-control" id="isbn" name="isbn" required><br><br><br>
                    </div>
                    <div class="form-group"><label for="bookName">书籍名称：</label>
                        <input type="text" class="form-control" id="bookName" name="bookName" required><br><br><br>
                    </div>
                    <div class="form-group"><label for="author">书籍作者：</label>
                        <input type="text" class="form-control" id="author" name="author" required><br><br><br>
                    </div>
                    <div class="form-group"><label for="press">书籍出版社：</label>
                        <input type="text" class="form-control" id="press" name="press" required><br><br><br>
                    </div>
                    <div class="form-group"><label for="bookCount">书籍数量：</label>
                        <input type="number" class="form-control" id="bookCount" name="bookCount" required><br><br><br>
                    </div>
                    <div class="form-group"><label for="detail">书籍详情：</label>
                        <input type="text" class="form-control" id="detail" name="detail"><br><br><br>
                    </div>
                    <div class="form-group"><label for="typeID1">书籍标签1（必填）：</label>
                        <select id="typeID1" class="form-control" name="typeID1" required>
                            <option selected>---</option>
                            <option value="1">经典著作</option>
                            <option value="2">青春校园</option>
                            <option value="3">历史文学</option>
                        </select>
                    </div>

                    <div class="form-group"><label for="typeID2">书籍标签2（选填）：</label>
                        <select id="typeID2" class="form-control" name="typeID2">
                            <option value="0" selected>---</option>
                            <option value="1">经典著作</option>
                            <option value="2">青春校园</option>
                            <option value="3">历史文学</option>
                        </select>
                    </div>
                    <div class="form-group"><label for="typeID3">书籍标签3（选填）：</label>
                        <select id="typeID3" class="form-control" name="typeID3">
                            <option value="0" selected>---</option>
                            <option value="1">经典著作</option>
                            <option value="2">青春校园</option>
                            <option value="3">历史文学</option>
                        </select>
                    </div>

                    <div class="form-group"><input type="hidden" name="bookState" value="1" required></div>

                    <div class="form-group"><label for="img">书籍图片：</label></div>

                    <div class="form-group">
                        <input id="img"  type="file" name="img" />
                        <input type="submit" class="form-control" value="添加"/>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>